package com.landinfo.service.dto;


import java.io.Serializable;
import java.util.Objects;

/**
 * A DTO for the Region entity.
 */
public class RegionDTO2 implements Serializable {

  private String id;

  private String name;

  private Long state;

  private Integer level;

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public Long getState() {
    return state;
  }

  public void setState(Long state) {
    this.state = state;
  }

  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    RegionDTO2 regionDTO = (RegionDTO2) o;

    if (!Objects.equals(id, regionDTO.id)) {
      return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    return Objects.hashCode(id);
  }

  @Override
  public String toString() {
    return "RegionDTO{" +
      "id=" + id +
      ", name='" + name + "'" +
      ", parentid='"  + "'" +
      ", state='" + state + "'" +
      ", level='" + level + "'" +
      '}';
  }


}
